<template>
  <div class="match_tab">
    <div
      class="tabs_item"
      v-for="(value, key) in homeState.matchtabs"
      :class="homeState.activematchtabs == key ? 'active_tabs_item' : ''" @click="homeStore.changeactivematchtabs(key)"
      :key="key"
    >
      <div class="title AlibabaPuHuiTi_2_55_">{{ value.label }}</div>
      <div class="num DINAlternate">{{value.count}}</div>
    </div>
  </div>
</template>

<script setup>

const { homeStore, homeState } = inject('HomeStore')
</script>

<style lang="scss" scoped>
.match_tab {
  width: 100%;
  height: 36px;
  padding: 8px 12px 0 12px;
  display: flex;
}

.tabs_item {
  display: flex;
  align-items: center;
  margin-right: 16px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
  
}
.active_tabs_item {
  font-size: 16px;
  font-weight: bold;
  color: #3711d8;
  border-bottom: 2px solid #3711d8;
}
.num {
  font-weight: bold;
  margin-left: 4px;
  top: -4px;
  line-height: 1px;
}
</style>